package com.itdct.onflow.core.config.onflow

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component

/**
 * @author Zhouwx
 * @date 2025/10/21 14:23:30
 * @version 1.0
 * @description
 */
@Component
@ConfigurationProperties(prefix = "onflow.cors")
class CorsConfig {
    var enable = false
    var allowOrigins: MutableList<String> = mutableListOf()
    var allowMethods: MutableList<String> = mutableListOf()
    var allowHeaders: MutableList<String> = mutableListOf()
    var allowCredentials = true
    var maxAge = 3600L
    var pathPattern = "/**"

}